package com.lightkits.wms.database.dao;

import com.lightkits.wms.database.model.BdDeliveryOrderModel;
import com.lightkits.wms.database.model.BdDeliveryTaskModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WmsDeliveryOrderBaseMapper {
    List<BdDeliveryTaskModel> queryDeliveryTaskByDoNum(@Param("doNumOrId") String doNumOrId,
                                                       @Param("languageCode") String languageCode
    );

    List<BdDeliveryTaskModel> queryDeliveryTaskByDate(@Param("completedDate") String completedDate
            , @Param("languageCode") String languageCode );

    List<BdDeliveryOrderModel> queryDeliveryOrderByDate(@Param("demandDate") String demandDate,
                                                        @Param("makeOrderDate") String makeOrderDate,
                                                        @Param("deliveryNumOrId") String deliveryNumOrId,
                                                        @Param("languageCode") String languageCode);


    List<BdDeliveryOrderModel> queryDeliveryOrderByParams(@Param("deliveryNumOrId") String deliveryNumOrId,
                                                          @Param("deliveryStatus") String deliveryStatus,
                                                          @Param("languageCode") String languageCode);
}
